
SET(SOCI_ROOT_DIR ${THIRD_PARTY}/soci)

if (CMAKE_TOOLCHAIN_FILE OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
	SET(SOCI_ROOT_DIR ${THIRD_PARTY}/sdk/arm)
endif()

SET(SOCI_INCLUDE_DIR ${SOCI_ROOT_DIR}/include)


if (WIN32)
	SET(SOCI_LIBRARIES soci_core_4_0 soci_sqlite3_4_0)
	
	SET(SOCI_LIBRARY_DIR ${SOCI_ROOT_DIR}/lib/Release ${SOCI_ROOT_DIR}/soci/lib)
else()
	SET(SOCI_LIBRARIES soci_core soci_sqlite3 sqlite3)
	SET(SOCI_LIBRARY_DIR ${THIRD_PARTY}/build/sqlite/lib ${THIRD_PARTY}/build/soci/lib ${THIRD_PARTY}/soci/lib ${THIRD_PARTY}/sqlite/lib)
	if (CMAKE_TOOLCHAIN_FILE OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
		SET(SOCI_LIBRARY_DIR ${SOCI_ROOT_DIR}/lib64 ${SOCI_ROOT_DIR}/lib)
	endif()
	
endif()

#message("SOCI_LIBRARY_DIR=${SOCI_LIBRARY_DIR}")